/**
 * Created by Salted fish
 * Description:
 * User: 24539
 * Date：2021-08-01
 * Time: 22:02
 */
public class Test6 {
    public static void main(String[] args) {
        int [] arr={3,9,8,4,1,7};
        System.out.println(fid(arr));
    }
    public static int fid(int [] arr) {
        int  max=arr[0];
        for (int j=0;j< arr.length;j++) {
            if(arr[j]>max)
                max=arr[j];
        }
        return max;
    }
}
